import QtQuick
import QtQuick.Controls

Item {
    width: 400
    height: 400

    Image {
        id: image
        source: "qrc:/images/deepseek-logo.png"
        width: 200
        height: 200
        anchors.centerIn: parent

        // 旋转控制
        property real imageRotation: 0
        rotation: imageRotation

        // 旋转动画
        Behavior on rotation {
            NumberAnimation { duration: 200 }
        }
    }

    // 添加旋转控制滑块
    Slider {
        anchors.bottom: parent.bottom
        width: parent.width
        from: 0
        to: 360
        value: 0
        onValueChanged: image.imageRotation = value
    }
}
